ABC118 C - Monsters Battle Royale
https://atcoder.jp/contests/abc118/tasks/abc118_c
提出
code: python
from functools import reduce
import math
n = int(input())
a = list(map(int, input().split()))
def my_gcd(numbers):
return reduce(math.gcd, numbers)
print(my_gcd(a))
テーマ
#gcd